﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExportMonthlyReport.aspx.cs"
    Inherits="ReportStorage_ExportMonthlyReport" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>基础数据维护</title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <link href="../css/tab.css" type="text/css" rel="stylesheet" />

    <script src="../js/calendar.js" type="text/javascript"></script>

    <script src="../js/Common.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">

        function BtnSubmit() {
            debugger;
            //效验数据是否正确
            if (parseInt(parseFloat($("txtPowers_1").value) + parseFloat($("txtPowers_2").value) + parseFloat($("txtPowers_3").value)) != 100) {
                alert("1.1生产管理用房耗电+1.2渠道用房耗电+1.3其它用房耗电不等于耗电量");
                return;
            }
            if (parseInt(parseFloat($("txtPowers_1_1").value) + parseFloat($("txtPowers_1_2").value) + parseFloat($("txtPowers_1_3").value)) != parseFloat($("txtPowers_1").value)) {
                alert("通信机房+支撑系统用房+管理用房不等于1.1生产管理用房耗电");
                return;
            }
            if (parseInt(parseFloat($("txtPowers_3_1").value) + parseFloat($("txtPowers_3_2").value)) != parseFloat($("txtPowers_3").value)) {
                alert("其中：基站机房+传输节点机房不等于1.3其它用房耗电不等于耗电量");
                return;
            }
            if (parseInt(parseFloat($("txtPowers_3_1_1").value) + parseFloat($("txtPowers_3_1_2").value) + parseFloat($("txtPowers_3_1_3").value)) != parseFloat($("txtPowers_3_1").value)) {
                alert("其中：GSM独立基站耗电量+TD-SCDMA独立基站耗电量+GSM&TD-SCDMA共站耗电量不等于其中：基站机房");
                return;
            }
            var btnSave = window.document.getElementById("SaveData");
            if (btnSave != null)
                btnSave.click();
        }
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr style="height: 5;">
            <td>
                <div align="left" class="greynavbar" style="background-image: url('../images/hit_bg.gif');">
                    <ul id="foldertab">
                        <li><a href="ReportManage.aspx">自定义报表生成</a></li>
                        <%if (String.IsNullOrEmpty(sAreaId))
                          { %>
                        <li><a class="current" href="ExportReportMonthly.aspx">设置省公司报表比例</a></li>
                        <%} %>
                        <li><a href="ExportReportMonthly.aspx">地市月度专项报表</a></li>
                        <%if (String.IsNullOrEmpty(sAreaId))
                          { %>
                        <li><a href="ExportProvinceReport.aspx">省公司月度专项报表</a></li>
                        <%} %>
                    </ul>
                </div>
            </td>
        </tr>
    </table>
    <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left" style="width: 40%">
                &nbsp;<strong>月份：</strong>
            </td>
            <td>
                &nbsp;<select id="sltYear" runat="server" style="width: 60px;">
                    <option value="2008">2008</option>
                    <option value="2009">2009</option>
                    <option value="2010" selected="selected">2010</option>
                    <option value="2011">2011</option>
                    <option value="2012">2012</option>
                    <option value="2013">2013</option>
                    <option value="2014">2014</option>
                    <option value="2015">2015</option>
                </select>&nbsp;<asp:DropDownList ID="sltMonth" runat="server" AutoPostBack="True" Width="70px" OnSelectedIndexChanged="sltMonth_SelectedIndexChanged">
                    <asp:ListItem Value="">请选择...</asp:ListItem>
                    <asp:ListItem Value="01">01</asp:ListItem>
                    <asp:ListItem Value="02">02</asp:ListItem>
                    <asp:ListItem Value="03">03</asp:ListItem>
                    <asp:ListItem Value="04">04</asp:ListItem>
                    <asp:ListItem Value="05">05</asp:ListItem>
                    <asp:ListItem Value="06">06</asp:ListItem>
                    <asp:ListItem Value="07">07</asp:ListItem>
                    <asp:ListItem Value="08">08</asp:ListItem>
                    <asp:ListItem Value="09">09</asp:ListItem>
                    <asp:ListItem Value="10">10</asp:ListItem>
                    <asp:ListItem Value="11">11</asp:ListItem>
                    <asp:ListItem Value="12">12</asp:ListItem>
                </asp:DropDownList>
                <span style="color: #ff0000">*</span>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>1、耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;" Enabled="false">100</asp:TextBox>% &nbsp;<asp:Label
                        ID="labPowers" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;1.1生产管理用房耗电：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*</span>&nbsp;<asp:Label
                        ID="labPowers_1" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;其中：通信机房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_1" runat="server" CssClass="TextBox" MaxLength="50"
                    TabIndex="2" Style="width: 110px;"></asp:TextBox>%<font color="#ff0000">*&nbsp;</font><asp:Label
                        ID="labPowers_1_1" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;支撑系统用房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labPowers_1_2" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：客服用房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_2_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;" Enabled="false">100</asp:TextBox>% &nbsp;<asp:Label
                        ID="labPowers_1_2_1" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;管理用房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_1_3" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label ID="labPowers_1_3" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;1.2渠道用房耗电：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label ID="labPowers_2" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;其中：独立营业厅：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_2_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;" Enabled="false">100</asp:TextBox>% &nbsp;<asp:Label ID="labPowers_2_1" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;1.3其它用房耗电：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label ID="labPowers_3" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left" style="height: 25px">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;其中：基站机房：</strong>
            </td>
            <td style="height: 25px">
                &nbsp;<asp:TextBox ID="txtPowers_3_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>% &nbsp;<asp:Label ID="labPowers_3_1" runat="server"
                        Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：GSM独立基站耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_1_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labPowers_3_1_1" runat="server" Text=""></asp:Label>
                    
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TD-SCDMA独立基站耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_1_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label ID="labPowers_3_1_2" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GSM&TD-SCDMA共站耗电量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_1_3" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*
                    
                
                
                </span>
                <asp:Label ID="labPowers_3_1_3" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;&nbsp; 传输节点机房：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtPowers_3_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labPowers_3_2" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>2、汽油消耗量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtGas" runat="server" CssClass="TextBox" MaxLength="10" TabIndex="1"
                    Style="width: 110px;" Text="100" Enabled="false"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labGas" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;2.1生产用油：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtGas_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labGas_1" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;2.2管理用油：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtGas_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labGas_2" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>3、柴油消耗量：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtDieselFuel" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;" Text="100" Enabled="false"></asp:TextBox>%<span
                        style="color: #ff0000">*&nbsp;</span><asp:Label ID="labDieselFuel" runat="server"
                            Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;3.1生产用油：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtDieselFuel_1" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labDieselFuel_1" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="background-color: #F9F9FB; height: 25;">
            <td align="left">
                &nbsp;<strong>&nbsp;&nbsp;3.2管理用油：</strong>
            </td>
            <td>
                &nbsp;<asp:TextBox ID="txtDieselFuel_2" runat="server" CssClass="TextBox" MaxLength="10"
                    TabIndex="1" Style="width: 110px;"></asp:TextBox>%<span style="color: #ff0000">*&nbsp;</span><asp:Label
                        ID="labDieselFuel_2" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr style="height: 30; background-color: #F9F9FB">
            <td>
            </td>
            <td>
                <input id="SaveData" type="button" style="width: 0; height: 0;" class="button02"
                    runat="server" value="提交" onserverclick="SaveData_ServerClick" />
                <input type="button" id="Button1" value="提交" class="button02" onclick="BtnSubmit();" />
                <input type="button" id="Button2" value="退出" class="button02" onclick="window.location.href='FileSpaceManage.aspx';" />
            </td>
        </tr>
    </table>
    <input id="hidEdit" type="hidden" runat="server" />
    </form>
</body>
</html>
